package theUseOfArrays;

/**
 * @ClassName theUseOfArrays.ArrayMemoryGraph02
 * @Description 数组内存图代码2
 * @Author 李明忠
 * @Date 2025/5/19 21:13
 * @Version 1.0
 */
public class ArrayMemoryGraph02 {
    public static void main(String[] args) {
        int[] arr1 = new int[3];
        arr1[0] = 10;
        arr1[1] = 20;
        arr1[2] = 30;

        int[] arr2 = new int[]{1,2,3,4,5};
        arr2[0] = 100;
        arr2[1] = 200;

        arr1 = arr2;
        arr1[2] = 300;
        arr1[3] = 400;
        arr1[4] = 500;
    }
}
